*,
::before,
::after{
    margin: 0;
    padding: 0;

    -webkit-box-sizing: border-box;
    box-sizing: border-box;

    -webkit-tap-highlight-color: transparent;
}

body{
    font-family: "Microsoft YaHei", sans-serif;
    font-size: 12px;
    color: #000;
}

a{
    text-decoration: none;
    color: #666;
}

ul,ol{
    list-style: none;
}

input, textarea{
    outline: none;
    border: none;
    /*取出iPhone手机非扁平化效果*/
    -webkit-appearance: none;
}

.clearfix::before,
.clearfix::after{
    content: ".";
    /* 注意点 */
    display: block;
    height: 0;
    line-height: 0;
    clear: both;
    /* 保持内容的占位,但是隐藏显示 */
    visibility: hidden;
}

/*正则匹配知识*/
[class ^= "icon_"]{
    background: url("../images/sprites.png") no-repeat;
    -webkit-background-size: 200px 200px;
    background-size: 200px 200px;
}

/* 顶部header */
.jd_base_header{
    width: 100%;
}

/* header的顶部 */
.jd_base_header .jd_topbar{
    width: 100%;
    height: 44px;
    line-height: 44px;
    text-align: center;

    background: url("../images/header-bg.png") repeat-x;
    -webkit-background-size: 1px 44px;
    background-size: 1px 44px;

    position: relative;
}
.jd_topbar .icon_back{
    position: absolute;
    left: 0;
    top: 0;
    width: 38px;
    height: 44px;

    background-position: -20px 0;
    /*由于图片大小是20 20*/
    padding: 12px 9px;

    /* 背景图相对于内容框来定位 */
    -webkit-background-clip: content-box;
    background-clip: content-box;
    /* 背景图定位从内容开始计算 */
    -webkit-background-origin: content-box;
    background-origin: content-box;
}
.jd_topbar .icon_shortcut{
    position: absolute;
    right: 10px;
    top: 0;
    width: 40px;
    height: 44px;

    background-position: -60px 0;
    /*由于图片大小是20 20*/
    padding: 12px 10px;

    /* 背景图相对于内容框来定位 */
    -webkit-background-clip: content-box;
    background-clip: content-box;
    /* 背景图定位从内容开始计算 */
    -webkit-background-origin: content-box;
    background-origin: content-box;
}

.jd_topbar span.jd_topbar_title{
    font-size: 16px;
}

.jd_topbar form{
    width: 100%;
    height: 44px;
    padding-left: 40px;
    padding-right: 50px;
}

.jd_topbar .icon_search{
    position: absolute;
    left: 50px;
    top: 12px;

    background-position: -60px -109px;
    width: 20px;
    height: 20px;
}
.jd_topbar form input{
    margin-top: 5px;
    height: 34px;
    width: 100%;
    padding-left: 30px;

    border: 1px solid #e0e0e0;
    border-radius: 17px;
}
/* header底部的shortcut */
.jd_base_header .jd_shortcut{
    display: table;
    width: 100%;
    height: 57px;
    background: #404042;
}

.jd_shortcut li{
    display: table-cell;
    width: 25%;
    height: 100%;
    text-align: center;
}
.jd_shortcut li.current{
    background: #2d2d2d;
}
.jd_shortcut li a{
    display: block;
    width: 100%;
    height: 100%;
}

.jd_shortcut li a span{
    display: block;
    width: 30px;
    height: 30px;
    margin: 0 auto;
    margin-top: 5px;
}
.jd_shortcut li a span.icon_home{
    background-position: -30px -27px;
}
.jd_shortcut li a span.icon_category{
    background-position: -60px -27px;
}
.jd_shortcut li a span.icon_cart{
    background-position: -90px -27px;
}
.jd_shortcut li a span.icon_me{
    background-position: -120px -27px;
}
.jd_shortcut li a p{
    color: #fff;
}